<?php
/**
 * @file testDsCahche.php
 * @desc 
 *   测试DsCahce, 对像调用;
 * 
 */
echo DDS;
echo "<br />\t\n 测试DsCache:<br />\t\n";
require_once 'DsCache.class.php';
$policy = array( 'cache_dir' => 'tmp',  //缓存目录
    'cache_subdir'=>time().'/'.'Google',  //子目录
   'encoding_filename'=>false);  //不加密文件名
$DsCache = new DsCache($policy);
$data = array('FUCK GFW!', 'OH~~ MY GODAZ.');


if( $DsCache->get(".SELECT * FROM dasdsa_DSADSA / dsad .dsa\n\t") == false ){
	echo "dasdsadjiasj";
	$DsCache->set(time().".SELECT * FROM dasdsa_DSADSA / dsad .dsa\n\t",$data);
}
echo "<br />\t\nRemoveAll:<br />\t\n";
//$DsCache->remove(".SELECT * FROM dasdsa_DSADSA / dsad .dsa\n\t");
$DsCache->removeAll();  //清空缓存目录


?>
